﻿namespace SimpleWebServices.Web.Mvc
{
    using System.Net;
    using System.Web;

    public sealed class TemporaryRedirectResult : RedirectionResult
    {
        public TemporaryRedirectResult()
            : base()
        {
        }

        public TemporaryRedirectResult(string location)
            : base(location)
        {
        }

        public override HttpCacheability Cacheability
        {
            get
            {
                return HttpCacheability.Public;
            }
        }

        public override HttpStatusCode StatusCode
        {
            get
            {
                return HttpStatusCode.TemporaryRedirect;
            }
        }
    }
}